package com.b.service;

import com.b.domain.Favorite;
import com.b.vo.Result;

import java.util.List;

public interface FavoriteService {


    int insert(Favorite record);

    int insertSelective(Favorite record);

    List<Favorite> getAll();

    int deleteByPrimaryKey(Integer id);

    Favorite selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Favorite record);

    int updateByPrimaryKey(Favorite record);

    Result favoriteListByUserId(Integer userId,String title);

    Result favoritePageList(Integer userId, Integer curPage, Integer pageSize, Integer title);

    Result saveFavorite(Favorite favorite);
}

